package cn.actionListener;

import cn.action.StartAction;
import cn.entity.master.Fighter;
import cn.entity.StartView;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class StartListener implements ActionListener {
     private StartAction startAction;
     private Fighter fighter;
     public StartListener(StartView startView , Fighter fighter) {
         this.fighter = fighter;
         startAction=new StartAction(startView);
     }
    @Override
    public void actionPerformed(ActionEvent e) {
         startAction.action(fighter);

    }
}
